package stone926.mods.noGlint.mixin;

import net.minecraft.item.EnchantedBookItem;
import net.minecraft.item.ItemStack;
import net.minecraft.item.PotionItem;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin({EnchantedBookItem.class, PotionItem.class})
public class NoGlintMixin {

  @Inject(method = "hasGlint", at = @At("RETURN"), cancellable = true)
  private void hasGlint(ItemStack stack, CallbackInfoReturnable<Boolean> cir) {
    cir.setReturnValue(false);
  }

}
